package com.lhy.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import javafx.scene.chart.PieChart;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Author：罗昊宇
 * @Package：com.lhy.entity
 * @Project：springboot03
 * @name：Dept
 * @Date：2024/3/7 0007  8:39
 * @Filename：Dept
 */
public class Dept {
    private Integer id;
    private String deptName;
    @JsonFormat(pattern = "yyyy年MM月dd日",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createTime;
    @JsonFormat(pattern = "yyyy年MM月dd日",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date updateTime;


    public Dept() {
    }

    public Dept(Integer id, String deptName, Date createTime, Date updateTime) {
        this.id = id;
        this.deptName = deptName;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    /**
     * 获取
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取
     * @return deptName
     */
    public String getDeptName() {
        return deptName;
    }

    /**
     * 设置
     * @param deptName
     */
    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    /**
     * 获取
     * @return createTime
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 设置
     * @param createTime
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 获取
     * @return updateTime
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * 设置
     * @param updateTime
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String toString() {
        return "Dept{id = " + id + ", deptName = " + deptName + ", createTime = " + createTime + ", updateTime = " + updateTime + "}";
    }
}
